package com.stlm2.dems.sns.entity;

public enum Platform {
	
	Web(1, "web系统"),
	Wap(4, "wap系统"),
	Crm(7, "crm系统"),
	Api(8, "api系统"),
	Android(10, "安卓客户端"),
	Ios(13, "苹果客户端"),
	Service(16, "客服系统"),
	Mq(19, "消息系统"),
    Merchant(20, "供应商系统");

	private final int val;
	private final String desc;

	Platform(int val, String desc) {
		this.val = val;
		this.desc = desc;
	}
	
	public String toString(){
		return desc;
	}

	public int getIntValue() {
		return val;
	}

	public static Platform getByIntValue(int n) {
		switch (n) {
		case 1:
			return Web;
		case 4:
			return Wap;
		case 7:
			return Crm;
		case 8:
			return Api;
		case 10:
			return Android;
		case 13:
			return Ios;
		case 16:
			return Service;
		case 19:
			return Mq;
        case 20:
            return Merchant;
		default:
			return null;
		}
	}
}
